<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<link rel="stylesheet" href="/static/css/my_style.css" type="text/css"></link>
<title>Galería de Fotos</title>
</head>
<body>
    <?python
        url_photo = "static/images/photos/"
    ?>
    <div id="photos">
        <span py:for="photo in photos">
            <a href="${url_photo}${photo.image}">
                <img src="${url_photo}${photo.thumbail}"
border="0"></img>
            </a>
        </span>
        <br></br>
        <p class="pages">
            <span py:if="tg.paginate.href_prev != None">
            <a href="${tg.paginate.href_prev}">Previous</a>
            </span>
            <span py:if="tg.paginate.href_prev == None">Previous</span>
            <span py:for="page in tg.paginate.pages">
                <a py:if="page != tg.paginate.current_page"
                    href="${tg.paginate.get_href(page)}">${page}</a>
                <b py:if="page == tg.paginate.current_page">${page}</b>
            </span>
            <span py:if="tg.paginate.href_next != None">
            <a href="${tg.paginate.href_next}">Next</a>
            </span>
            <span py:if="tg.paginate.href_next == None">Next</span>
        </p>
    </div>
</body>
</html>